import { createSlice } from "@reduxjs/toolkit";
const loginSlice = createSlice({
  name: "loginSlice",
  initialState: {
    userData: "111",
  },
  reducers: {
    setUser(state, action) {
      state.userData = action.payload;
    },
    deleLocalityStorage() {
      localStorage.removeItem("user");
    },
  },
});
export const { setUser, deleLocalityStorage } = loginSlice.actions;
export default loginSlice.reducer;
